package cn.itcast.dao;

import cn.itcast.daomain.comment;
import cn.itcast.daomain.commodity;
import cn.itcast.daomain.purchase;
import cn.itcast.daomain.user;

import java.util.List;

public interface UserDao {

    List<commodity> selec();

    user addUser(String username);

    void save(user user);

    user findByCode(String code);

    void updateStatus(user user);

    user login(String username, String password);

    commodity details(String id);


    int addSp(String foodList, String user, String len, String shou);

    List<commodity> spList(String spName);

    int updateUser(String username, String password, String pptPic);

    user chaxunl(String username);

    List<purchase> selecPur(String userid);

    List<comment> comment_id(String commentId);

    int updateuserPhoen(String id, String phone);

    user userObject(String userid);

    int updatecomment(String comment, String commUser, String tup, String text, String userImg,String xin);

    int updatepur(String purid);


    int updateUser(String username, String pptPic);
}
